﻿using System.IO;

namespace WeShare.WeiXin.Common
{
    public class FileStreamInfo : MemoryStream
    {
        public string FileName { get; set; }

        public void Save(string path)
        {
            using (var file = new FileStream(path, FileMode.Create))
            {
                this.WriteTo(file);
                file.Flush();
            }
        }
    }
}
